#pragma once

#include <asm/irqflags.h>

#define local_irq_disable() arch_local_irq_disable()
#define local_irq_enable() arch_local_irq_enable()

#define raw_local_irq_save(flags)      \
    do                                 \
    {                                  \
        flags = arch_local_irq_save(); \
    } while (0)

#define raw_local_irq_restore(flags)   \
    do                                 \
    {                                  \
        arch_local_irq_restore(flags); \
    } while (0)

#define local_irq_save(flags) raw_local_irq_save(flags)
#define local_irq_restore(flags) raw_local_irq_restore(flags)

#define irqs_disabled() arch_irqs_disabled()
